//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['MeatEater Podcast Live','The Wilma Theatre - MT','Missoula, MT','Wednesday','5/1/2024','8:00 PM','6302636','MeatEater-Podcast-Live-5-1-2024'],['Shakewell','The Wilma Theatre - MT','Missoula, MT','Friday','5/10/2024','8:00 PM','6315174','Shakewell-5-10-2024'],['Terrapin Flyer','The Wilma Theatre - MT','Missoula, MT','Friday','5/17/2024','8:00 PM','6247213','Terrapin-Flyer-5-17-2024'],['Fruit Bats','The Wilma Theatre - MT','Missoula, MT','Sunday','5/19/2024','8:00 PM','6227594','Fruit-Bats-5-19-2024'],['Keller and The Keels','The Wilma Theatre - MT','Missoula, MT','Saturday','6/8/2024','8:00 PM','6336441','Keller-and-The-Keels-6-8-2024'],['Skillet','The Wilma Theatre - MT','Missoula, MT','Monday','6/10/2024','8:00 PM','6330188','Skillet-6-10-2024'],['Mat Kearney','The Wilma Theatre - MT','Missoula, MT','Friday','6/21/2024','8:00 PM','6304531','Mat-Kearney-6-21-2024'],['Noah Cyrus','The Wilma Theatre - MT','Missoula, MT','Tuesday','7/9/2024','8:00 PM','6348477','Noah-Cyrus-7-9-2024'],['Blitzen Trapper','The Wilma Theatre - MT','Missoula, MT','Friday','7/12/2024','8:00 PM','6308730','Blitzen-Trapper-7-12-2024'],['Shakey Graves','The Wilma Theatre - MT','Missoula, MT','Friday','7/19/2024','8:00 PM','6370364','Shakey-Graves-7-19-2024'],['STRFKR','The Wilma Theatre - MT','Missoula, MT','Wednesday','7/31/2024','8:00 PM','6205985','STRFKR-7-31-2024'],['K. Flay','The Wilma Theatre - MT','Missoula, MT','Tuesday','8/20/2024','8:00 PM','6403101','K--Flay-8-20-2024'],['Mother Mother','The Wilma Theatre - MT','Missoula, MT','Saturday','9/14/2024','8:00 PM','6396614','Mother-Mother-9-14-2024'],['Classic Albums Live Tribute Show: Ziggy Stardust','The Wilma Theatre - MT','Missoula, MT','Saturday','10/19/2024','8:00 PM','6334464','Classic-Albums-Live-Tribute-Show--Ziggy-Stardust-10-19-2024'],['Built To Spill','The Wilma Theatre - MT','Missoula, MT','Saturday','6/21/2070','TBD','4417927','Built-To-Spill-6-21-2070'],['David Bromberg','The Wilma Theatre - MT','Missoula, MT','Friday','12/5/2070','8:00 PM','4466049','David-Bromberg-12-5-2070']],'Wilma Theatre','http://www.ticketnetwork.com/ticket/Wilma-Theatre-events.aspx');